<?php

use Drupal\shusy_express_type\Entity\ShusyExpressType;

function shusy_express_type_shusy_express_type_add_page() {
  $e = new ShusyExpressType();
  module_load_include('inc', 'shusy_express_type', 'shusy_express_type.forms');
  return drupal_get_form('shusy_express_type_shusy_express_type_entity_form', $e, 'add');
}

function shusy_express_type_shusy_express_type_view_page(ShusyExpressType $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_express_type_shusy_express_type_edit_page(ShusyExpressType $e) {
  module_load_include('inc', 'shusy_express_type', 'shusy_express_type.forms');
  return drupal_get_form('shusy_express_type_shusy_express_type_entity_form', $e, 'edit');
}

function shusy_express_type_shusy_express_type_delete_page(ShusyExpressType $e) {
  module_load_include('inc', 'shusy_express_type', 'shusy_express_type.forms');
  return drupal_get_form('shusy_express_type_shusy_express_type_delete_form', $e);
}

